import BasicLayout from '@/layouts/basic-layout';

const meta = {
	auth: true
};

const pre = 'administrative-';

export default {
	path: '/administrative',
	name: 'administrative',
	redirect: {
		name: `${pre}goods`
	},
	meta,
	component: BasicLayout,
	children: [
		{
			path: 'goods',
			name: `${pre}goods`,
			meta: {
				...meta,
				title: '物品领用'
			},
			component: () => import('@/pages/administrative/goods')
		}, {
			path: 'goods/goReview',
			name: `goods/goReview`,
			meta: {
				...meta,
				title: '物品领用-审核'
			},
			component: () => import('@/pages/administrative/goods/goReview')
		},  {
			path: 'goods/goods-add',
			name: `goods/goods-add`,
			meta: {
				...meta,
				title: '物品领用-新增'
			},
			component: () => import('@/pages/administrative/goods/goods-add')
		},  {
			path: '/administrative/goods/yes-detail',
			name: `goods-yesDetail`,
			meta: {
				...meta,
				title: '物品领用-审核详情'
			},
			component: () => import('@/pages/administrative/goods/yes-detail')
		},  {
			path: '/administrative/goods/no-detail',
			name: `goods-noDetail`,
			meta: {
				...meta,
				title: '物品领用-用户申请详情'
			},
			component: () => import('@/pages/administrative/goods/no-detail')
		},


		{
			path: 'car',
			name: `${pre}car`,
			meta: {
				...meta,
				title: '用车申请'
			},
			component: () => import('@/pages/administrative/car')
		},
		{
			path: 'car/goReview',
			name: `car/goReview`,
			meta: {
				...meta,
				title: '物品领用-审核'
			},
			component: () => import('@/pages/administrative/car/goReview')
		},  {
			path: 'car/car-add',
			name: `car/car-add`,
			meta: {
				...meta,
				title: '物品领用-新增'
			},
			component: () => import('@/pages/administrative/car/car-add')
		},  {
			path: '/administrative/car/yes-detail',
			name: `car-yesDetail`,
			meta: {
				...meta,
				title: '物品领用-审核详情'
			},
			component: () => import('@/pages/administrative/car/yes-detail')
		},  {
			path: '/administrative/car/no-detail',
			name: `car-noDetail`,
			meta: {
				...meta,
				title: '物品领用-用户申请详情'
			},
			component: () => import('@/pages/administrative/car/no-detail')
		},

		{
			path: 'chapter',
			name: `${pre}chapter`,
			meta: {
				...meta,
				title: '用章申请'
			},
			component: () => import('@/pages/administrative/chapter')
		},
		{
			path: 'chapter/goReview',
			name: `chapter/goReview`,
			meta: {
				...meta,
				title: '物品领用-审核'
			},
			component: () => import('@/pages/administrative/chapter/goReview')
		},  {
			path: 'chapter/chapter-add',
			name: `chapter/chapter-add`,
			meta: {
				...meta,
				title: '物品领用-新增'
			},
			component: () => import('@/pages/administrative/chapter/chapter-add')
		},  {
			path: '/administrative/chapter/yes-detail',
			name: `chapter-yesDetail`,
			meta: {
				...meta,
				title: '物品领用-审核详情'
			},
			component: () => import('@/pages/administrative/chapter/yes-detail')
		},  {
			path: '/administrative/chapter/no-detail',
			name: `chapter-noDetail`,
			meta: {
				...meta,
				title: '物品领用-用户申请详情'
			},
			component: () => import('@/pages/administrative/chapter/no-detail')
		},
	]
};
